package com.stone.myapplication333;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.ArrayList;
import java.util.Collections;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Collections.sort(new ArrayList<String>(), ((o1, o2) -> o1.compareToIgnoreCase(o2)) );
        System.out.println("中华人民共11和国"); //test log

        Collections.sort(new ArrayList<Integer>(), Integer::compareTo);
    }

}
